package com.ecloud.support.generator.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ecloud.common.base.result.Result;
import com.ecloud.common.base.result.ResultBuilder;
import com.ecloud.common.base.result.ResultStatus;
import com.ecloud.support.generator.service.iface.IDynamicService;

@RestController
@RequestMapping({ "/dynamic" })
public class DynamicController {
    @Resource
    private IDynamicService service;

    /**
     * 新增数据
     *
     * @author LiuGangQiang Create in 2021/04/01
     * @param dto 入参
     * @return {@link Result}
     */
    @GetMapping("/test")
    public Result<?> insert() {
        service.insert();
        return ResultBuilder.build(ResultStatus.OK);
    }

}
